home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
doodle_d.swf
/
scripts
/
frame_4
/
DoAction_9.as
< prev
next >
Wrap
Text File
|
2013-04-24
|
2KB
|
61 lines
function shield()
{
if(shieldLevel == 1)
{
if(shieldStart != true)
{
shieldMC.moveTo(_root.ship._x,_root.ship._y);
shieldMC.lineStyle(6,"0x0000FF",100);
shieldStart = true;
}
if(shieldTimer < shieldAmount && dx + dy != 0)
{
shieldTimer++;
shieldMC.lineTo(_root.ship._x,_root.ship._y);
}
}
if(shieldLevel == 2)
{
if(shieldStart != true)
{
shieldMC.moveTo(_root.ship._x,_root.ship._y);
shieldMC.lineStyle(8,"0x0000FF",100);
shieldStart = true;
}
if(shieldTimer < shieldAmount && dx + dy != 0)
{
shieldTimer++;
shieldMC.lineTo(_root.ship._x,_root.ship._y);
}
}
if(shieldLevel == 3)
{
if(shieldStart != true)
{
shieldMC.moveTo(_root.ship._x,_root.ship._y);
shieldMC.lineStyle(6,"0xFF0000",100);
shieldStart = true;
}
if(shieldTimer < shieldAmount && dx + dy != 0)
{
shieldTimer++;
shieldMC.lineTo(_root.ship._x,_root.ship._y);
}
}
if(shieldLevel == 4)
{
if(shieldStart != true)
{
shieldMC.moveTo(_root.ship._x,_root.ship._y);
shieldMC.lineStyle(8,"0xFF0000",100);
shieldStart = true;
}
if(shieldTimer < shieldAmount && dx + dy != 0)
{
shieldTimer++;
shieldMC.lineTo(_root.ship._x,_root.ship._y);
}
}
}
shieldLevel = 1;